package org.example;

public class demo3 {
    public static void main(String[] args) throws InterruptedException {
/*守护线程*/
        MyThread mt = new MyThread("女神");
        MyThread2 mt1 = new MyThread2("备胎");

        mt1.setDaemon(true);
        mt.start();
        mt1.start();
    }
}
